package com.aaa.controller;

import com.aaa.service.EchartsService;
import com.aaa.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/echarts")
public class EchartsController {
    @Autowired
    private EchartsService echartsService;
    @RequestMapping("/zhu")
    @ResponseBody
    public R zhu(){
        return echartsService.selectZhuData();
    }

    @RequestMapping("/pie")
    @ResponseBody
    public R pie(){
        return echartsService.selectPieData();
    }
}
